<?php /*a:1:{s:52:"/mnt/www/sh2.k66e.cn/app/admin/view/main/profit.html";i:1692506924;}*/ ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>工作台</title>
  <link rel="stylesheet" href="/static/assets/libs/layui/css/layui.css"/>
  <link rel="stylesheet" href="/static/assets/module/admin.css?v=318"/>
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  <style>
    .layui-form-label{
      width: 120px;
    }
  </style>
</head>
<body>
<!-- 正文开始 -->
<div class="layui-fluid ew-console-wrapper">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-xs12">
      <div class="layui-card">
        <div class="layui-card-header">
          收益设置
        </div>
        <div class="layui-card-body">
          <form class="layui-form" action="">
              
            <div class="layui-form-item">
              <label class="layui-form-label">单次获取收益时间</label>
              <div class="layui-input-inline">
                <input type="text" name="time" required lay-verify="required" placeholder="单次获取收益时间"class="layui-input" value="<?php echo htmlentities($info['time']); ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">正常用户单次获取收益时间(秒)</div>
            </div>
            
            <div class="layui-form-item">
              <label class="layui-form-label">每分钟收益</label>
              <div class="layui-input-inline">
                <input type="text" name="min_add" required lay-verify="required" placeholder="每分钟收益"class="layui-input" value="<?php echo htmlentities($info['min_add']); ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">正常用户的每分钟收益金额</div>
            </div>
            <div class="layui-form-item">
              <label class="layui-form-label">每日收益上限</label>
              <div class="layui-input-inline">
                <input type="text" name="day_count" required lay-verify="required" placeholder="每分钟收益"class="layui-input" value="<?php echo htmlentities($info['day_count']); ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">正常用户的每日收益上限</div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">VIP每分钟收益</label>
              <div class="layui-input-inline">
                <input type="text" name="min_add_vip" required lay-verify="required" placeholder="VIP每分钟收益"class="layui-input" value="<?php echo htmlentities($info['min_add_vip']); ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">正常用户的每分钟收益金额</div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">VIP每日收益上限</label>
              <div class="layui-input-inline">
                <input type="text" name="day_count_vip" required lay-verify="required" placeholder="VIP每日收益上限"class="layui-input" value="<?php echo htmlentities($info['day_count_vip']); ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">正常用户的每分钟收益金额</div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">账号提现抽成比例</label>
              <div class="layui-input-inline">
                <input type="text" name="fees" required lay-verify="required" placeholder="账号提现抽成比例"class="layui-input" value="<?php echo htmlentities($info['fees']); ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">每个账号提现抽成 % (百分比)</div>
            </div>
            
            <div class="layui-form-item">
              <label class="layui-form-label">提现抽成文字说明</label>
              <div class="layui-input-inline">
                <input type="text" name="feestxt" required lay-verify="required" placeholder="提现抽成文字说明"class="layui-input" value="<?php echo htmlentities($info['feestxt']); ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">提现抽成文字说明</div>
            </div>
            
            <div class="layui-form-item">
              <label class="layui-form-label">提现说明</label>
              <div class="layui-input-inline">
                <input type="text" name="fees_explain_txt" required lay-verify="required" placeholder="提现说明"class="layui-input" value="<?php echo htmlentities($info['fees_explain_txt']); ?>">
              </div>
              <div class="layui-form-mid layui-word-aux">提现说明</div>
            </div>

            <div class="layui-form-item">
              <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">立即保存</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
<!-- js部分 -->
<script type="text/javascript" src="/static/assets/libs/layui/layui.js"></script>
<script type="text/javascript" src="/static/assets/js/common.js?v=318"></script>
<script>
  layui.use(['layer','element','form'], function () {
    var $ = layui.jquery;
    var layer = layui.layer;
    var form = layui.form;

    form.on('submit(formDemo)', function(data){
      $.post("<?php echo url('admin/main/profit'); ?>", data.field, function (res) {
        if (res.code === 200) {
          layer.msg('保存成功', {icon: 1, time: 1500}, function () {
            location.reload()
          });
        } else {
          layer.msg(res.msg, {icon: 2, anim: 6});
        }
      }, 'json');
      return false;
    });
  });
</script>
</body>
</html>
